/**
 * @Author: Bobby
 * @Date: 2022-02-15 13:14:17
 * @LastEditTime: 2022-03-24 11:30:14
 * @LastEditors: Bobby
 * @Description:
 * @FilePath: \wms-v2\src\ve\common\components\baseComs\form\uiDateTimeInput.js
 * @CIMC-V2
 */
import { exInput, exSwitch, exSizeSelect, exTextarea, exRadioGroup, exValidateSelect } from '@ve/common/components/extension'
export default {
  VERSION: '20220613',
  type: 'uiDateTimeInput',
  name: '时间输入',
  icon: 'timer-2-line',
  svg: 'shijianshurukuang',
  //数据集合 表单 列表等等
  data: {
    requestData: {},
  },
  extension: {
    model: exInput('Model', 'dateTimeInput_name'),
    label: exInput('标签', '时间输入'),
    //rule: exSwitch('验证', false),
    extendRule: exValidateSelect('', {}, []),
    // ...exDivider(0),
    moduleType: exRadioGroup('类型', 'date', [
      {
        value: 'date',
        label: '日期',
      },
      {
        value: 'time',
        label: '时间',
      },
      {
        value: 'dateTime',
        label: '日期时间',
      },
    ]),
    // ...exDivider(1),
    tooltip: { ...exTextarea('弹窗提示', '', '', 3), isSuperior: true },
    size: exSizeSelect('尺寸', 'mini'),
    placeholder: exInput('提示', '请输入'),
    width: { ...exInput('宽度', 'auto', '填写数字:单位px,auto:自动宽度'), isSuperior: true },
    labelWidth: { ...exInput('label宽度', 'auto', '填写数字:单位px,auto:自动宽度'), isSuperior: true },
    disabled: exSwitch('禁用', false),
    hidden: exSwitch('隐藏', false),
    defaultValue: exInput('默认值', '', '请输入带时间分隔符的默认值，如: 2021-07-09 01:02:03'),
    ignoreClearValue: { ...exSwitch('忽略清空', false, '开启后清空表单会保留默认值'), isSuperior: true },
    enterSelect: {
      type: 'exModuleSelect',
      name: '回车选中',
      value: [],
      hasCheckbox: false,
      treeData: '$getPageModules',
      isSuperior: true,
    },
  },
  //交互
  interaction: [],
  //条件、逻辑指令
  logicInstruction: [],
}
